<style type="text/css">
.gmjl-title {
  padding-bottom: 10px;
  font-size: 18px;
  border-bottom: 1px solid #eee;
}
.gmjl-content {
  border-top: 1px solid #f58dae;
}
.gmjl-table {
  width: 100%;
}
.gmjl-table th,
.gmjl-table td {
  padding: 10px 0;
  text-align: center;
}
.gmjl-status1 {
  color: #eee;
}
.gmjl-status2 {
  color: #fafafa;
}
.gmjl-title .k-h5 {
    line-height: 25px;
}
.k-fr {
    float: right !important;
}
</style>
<div class="gmjl" style="background-color: {$config['formcolorcenter']};color: {$config['formcolorcentertext']};">
	<div class="gmjl-title">
		团长排行榜
		<span class="k-fr k-h5">共有：{$tuannum} 团</span>				</div>
	<div class="gmjl-content">
		<table class="gmjl-table">
			<thead>
				<tr>
					<th>排名</th>
					<th>头像</th>
					<th>团长</th>
					<th>团号</th>
					<th>团人数</th>
				</tr>
			</thead>
			<tbody>
			{loop $tuanranklist $index $item}
				<tr>					
					<td >{php echo $index+1;}</td>
					<td ><img style="border-radius: 1rem;
    overflow: hidden; width: 40px;height: 40px;
    margin: 0 0 0 10px;" src="{php echo tomedia($item['avatar']);}"  /></td>
						<td>{$item['username']}</td>
						<td>{php echo 10000+$item['id'];}</td>
						<td class="gmjl-status2" style="color: {$config['formcolorcentertext']};">{$item['tuannum']}</td>
				</tr>
			{/loop}
			</tbody>
		</table>
	</div>
</div>